package com.hui.xiao.xiaohui.intent;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;

import com.hui.xiao.xiaohui.R;

/**
 * Created by Administrator on 2016/5/28.
 */
public class SecondActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.action_attr);
        Button button = (Button) findViewById(R.id.attr);
        String action = getIntent().getAction();
        button.setText(action);
    }
}
